<?php /* Smarty version Smarty-3.0.9, created on 2013-05-19 19:11:11
         compiled from "C:/wamp/www/glight/templates\editar_sonido.tpl" */ ?>
<?php /*%%SmartyHeaderCode:12872519923cf6e0b19-14434546%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'd80756ead6b096cec0d3f2ed68057fd161da5a8c' => 
    array (
      0 => 'C:/wamp/www/glight/templates\\editar_sonido.tpl',
      1 => 1368990668,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '12872519923cf6e0b19-14434546',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php ob_start();?><?php echo $_SESSION['empleado']['cargo'];?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1=="Ingeniero de Sonido"){?>

    <style type="text/css"> @import url(../css/form.css); </style>
<h3>Editar Sonido</h3>

<form action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l__global'];?>
editar_sonido.php?option=buscar" method="POST">          
    <table id="tableForm" class="tableForm" >
        <th colspan="2"> <br></th>
         <tr>
            <td>
                Sonido: 
            </td>
            <td>
                <select required name="id" id="id" >
                   <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('sonido')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>   
                       <option  <?php ob_start();?><?php echo $_smarty_tpl->getVariable('id_sonido')->value;?>
<?php $_tmp2=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('sonido')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
<?php $_tmp3=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('id_sonido')->value;?>
<?php $_tmp4=ob_get_clean();?><?php if (isset($_tmp2)&&$_tmp3==$_tmp4){?>selected<?php }?> title="<?php echo $_smarty_tpl->getVariable('sonido')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
" value="<?php echo $_smarty_tpl->getVariable('sonido')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
"><?php echo $_smarty_tpl->getVariable('sonido')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('nombre');?>
</option>                
                   
                   <?php endfor; endif; ?>
               </select>   
               
                              
            </td>  
            <td>
                <div class="submit">
                    <input class="btn btn-primary"  type="submit" value="seleccionar sonido">
                </div>
            </td>
          </tr>
    </table>    
    </form>
        
               
     <?php if ($_GET['option']=='buscar'||$_GET['option']=='buscar2'){?>     
         <form action="<?php echo $_smarty_tpl->getVariable('gvar')->value['l__global'];?>
editar_sonido.php?option=editar" method="POST">
        <table id="tableForm" class="tableForm" >

            <tr>
                <td></td> 
                <td>
                </td>

            </tr> 
             <tr>
                <td>
                    Id:
                </td>
                <td>
                    <input readonly type="text" required id="id" name="id" autocomplete="off" value="<?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('id');?>
">
                </td>
            </tr>
            <tr>
                <td>
                    Nombre:
                </td>
                <td>
                    <input type="text" required id="nombre" name="nombre" autocomplete="off" value="<?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('nombre');?>
">
                </td>
            </tr>

            <tr>
                <td>
                    Intensidad:
                </td>
                <td>
                    <input type="text" required name="intensidad" value="<?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('intensidad');?>
">
                </td>
            </tr>
            <tr>
                <td>
                    Tipo:
                </td>
                <td>
                    <select required name="tipo">
                        <option value="facil" <?php ob_start();?><?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('tipo');?>
<?php $_tmp5=ob_get_clean();?><?php if ($_tmp5=="facil"){?>selected<?php }?>>Facil</option>
                        <option value="medio" <?php ob_start();?><?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('tipo');?>
<?php $_tmp6=ob_get_clean();?><?php if ($_tmp6=="medio"){?>selected<?php }?>>Medio</option>
                        <option value="dificil" <?php ob_start();?><?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('tipo');?>
<?php $_tmp7=ob_get_clean();?><?php if ($_tmp7=="dificil"){?>selected<?php }?>>Dificil</option>
                        <option value="ultra" <?php ob_start();?><?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('tipo');?>
<?php $_tmp8=ob_get_clean();?><?php if ($_tmp8=="ultra"){?>selected<?php }?>>Ultra</option>
                    </select>
                </td>
            </tr>


            <tr>
                <td>
                    Duracion:
                </td>
                <td>
                   <input type="time" name="duracion" required value="<?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('duracion');?>
">
                </td>
            </tr>    
          
            
            <tr>
                <td>Descripción:</td>

                <td>
                    <textarea  required id="descripcion" name="descripcion" autocomplete="off"><?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('descripcion');?>
</textarea>
                </td>
            </tr>

            <tr>
                <td>
                    Selecciona un videojuego:
                </td>
                <td>
                    <select required name="videojuego">
                        <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('videojuego')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                        <option <?php ob_start();?><?php echo $_smarty_tpl->getVariable('videojuego')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
<?php $_tmp9=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('videojuego');?>
<?php $_tmp10=ob_get_clean();?><?php if ($_tmp9==$_tmp10){?>selected<?php }?> value="<?php echo $_smarty_tpl->getVariable('videojuego')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
" title="<?php echo $_smarty_tpl->getVariable('videojuego')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
"><?php echo $_smarty_tpl->getVariable('videojuego')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('nombre');?>
</option>
                        <?php endfor; endif; ?>
                    </select>
                </td>
            </tr>
            <tr>
                <td>
                    Movimiento:
                </td>
                <td>
                     <select required name="movimiento">
                        <option value="null" ></option>
                        <?php unset($_smarty_tpl->tpl_vars['smarty']->value['section']['i']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'] = is_array($_loop=$_smarty_tpl->getVariable('movimiento')->value) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['name'] = 'i';
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['i']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['i']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['i']['total']);
?>
                        <option <?php ob_start();?><?php echo $_smarty_tpl->getVariable('movimiento')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
<?php $_tmp11=ob_get_clean();?><?php ob_start();?><?php echo $_smarty_tpl->getVariable('aux')->value[0]->get('movimiento');?>
<?php $_tmp12=ob_get_clean();?><?php if ($_tmp11==$_tmp12){?>selected<?php }?> value="<?php echo $_smarty_tpl->getVariable('movimiento')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
" title="<?php echo $_smarty_tpl->getVariable('movimiento')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('id');?>
"><?php echo $_smarty_tpl->getVariable('movimiento')->value[$_smarty_tpl->getVariable('smarty')->value['section']['i']['index']]->get('nombre');?>
</option>
                        <?php endfor; endif; ?>
                    </select>
                </td>
            </tr>

            <tr>               
                <input type="hidden" id="ingeniero_sonido" name="ingeniero_sonido" value="<?php echo $_SESSION['empleado']['cedula'];?>
">
            </tr>
            
            <tr>
                <td>

                </td>
                <td>
                    <hr>
                    <div class="submit">
                        <input class="btn btn-primary" type="submit" value="Editar Sonido">
                    </div>

                </td>
            </tr>

        </table><br />
    </form>
   
</div>
         <?php }?>
   
 <?php }else{ ?>
    Usted no tiene acceso al recurso solicitado, por favor registrese.
<?php }?>
